package gd.qaq.blue.boundary.command;

import gd.qaq.blue.boundary.Boundary;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;

import static gd.qaq.blue.boundary.util.PluginHelper.reload;

public class BoundaryCommands implements CommandExecutor {
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        switch (args.length) {
            case 1:
                String arg = args[0];
                if (arg.equalsIgnoreCase("reload")) {
                  reload(Boundary.plugin, sender);
                }
                break;
        }
        return true;
    }
}
